import { Code, CreateDate, Time, Entity, Latlng, MemberId, Mobile, PrimaryUuid, Title, UpdateDate, Uuid, Varchar } from "@sker/core";

@Entity({
    name: 'kd_shop'
})
export class KdShop {
    @PrimaryUuid()
    id: string;

    @Title({ comment: '网点名' })
    title: string;

    @Varchar({ comment: '网点地址' })
    address: string;

    @Latlng({ comment: '经纬度' })
    latlng: any;

    @Time({ comment: '开门时间', nullable: true })
    open_time: Date;

    @Time({ comment: '歇业时间', nullable: true })
    close_time: Date;

    @Mobile({comment: '电话', nullable: true})
    mobile: string;

    @Uuid({ comment: '网点责任人', nullable: true })
    user_id: string;

    @Uuid({ comment: '代理ID' })
    agent_id: string;

    @CreateDate()
    create_date: Date;

    @UpdateDate()
    update_date: Date;
}